package com.zy.stock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.junit.runners.Parameterized.Parameters;

import com.zy.stock.domain.Stock;
import com.zy.stock.dto.StockDto;

public interface StockMapper {
	
	public Integer getCount(StockDto obj);

	public List<Stock> findByCase(StockDto obj);
	
	public List<Stock> findByCode(@Param("code")String code);
	
	public Integer save(Stock stock);
	
	public Stock findById(Integer id);
	
	public Integer update(Stock stock);
	
	public void deleteById(Integer id);
	
	public List<Stock> findAll();
}
